package com.pym.bs.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    OK(2000L, "操作成功"),
//    PARAM_ERROR(4000L, "参数错误"),
//    CONFLICT(4009L, "重复提交"),
    UNAUTHORIZED(4000L, "未经授权啊"),
    INTERNAL_SERVER_ERROR(5000L, "服务器错误"),
//    EXIST_CHILD(900L, "存在子节点"),
//    EXIST_ROLE(901L, "该节点仍存在人员"),
//    REPEATED_EXISTENCE(601L, "该人员已存在"),
//    REQUIRED_PARAMETER_MISSING(501L, "缺少必要参数"),
//    ID_NOT_FOUND_(502L, "未找到id"),
//    STATE_ERROR(503L, "当前公告不可审批"),
//    NAME_REPEATED(504L, "名称重复"),
//    WRONG_DATA_TYPE(601L, "数据格式错误"),
//    ACCOUNT_REPEATED(701L, "账号重复"),
//    FILE_NOT_EXIST(801L, "文件不存在"),
//    SUBMIT_ERROR(1001L,"当前状态无法提交"),
//    DELETE_ERROR(1002L,"当前状态无法删除"),
//    EDIT_ERROR(1003L,"当前状态无法修改"),
//    SCORE_ERROR(1004L,"分值不相等"),
//    LOGIN_SUCCESS(2001L,"登录成功"),
//    LOGIN_FAILED(4004L,"登录失败"),
//    NO_PERMISSION(30001L,"没有访问权限"),
//    THIRD_ERROR(9999L,"第三方接口错误"),
//    THIRD_ROOM_ERROR(9999L,"第三方接口错误,请自行添加房间"),
//    THIRD_FILE_ERROR(9999L,"第三方图片接口错误,请重试"),
//    OLD_PASSWORD_NOT_CORRECT(3001L,"旧密码不正确")
    ;
    private Long status;

    private String message;

    public static final String RETURN_CODE = "status";

    /**
     * 定义静态成员常量 RETURN_MSG
     */
    public static final String RETURN_MSG = "message";

    ResultEnum(Long status, String message) {
        this.status = status;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    /**
     * 成员变量code的get方法
     *
     * @return int
     * @author currysss
     * @date 2019/9/6 9:29
     */
    public Long getStatus() {
        return status;
    }


}
